package com.ruoyi.system.domain.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 微信支付回调参数
 */
@Data
public class WeChatPayCallbackVo implements Serializable {

    @JsonProperty("out_trade_no")
    private String outTradeNo;

    @JsonProperty("transaction_id")
    private String transactionId;

    @JsonProperty("trade_type")
    private String tradeType;

    @JsonProperty("trade_state")
    private String tradeState;

    @JsonProperty("trade_state_desc")
    private String tradeStateDesc;

    @JsonProperty("bank_type")
    private String bankType;

    @JsonProperty("success_time")
    private String successTime;

    private String flag;

    private WeChatPayCallbackAmountVo amount;


    @Data
    public static class WeChatPayCallbackAmountVo {

        private Integer total;

        @JsonProperty("payer_total")
        private Integer payerTotal;

    }
}
